<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns="">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    01. 普通字符串<br/>
    <div th:text="${name}"></div><br/>

    02. 对象<br/>
    <tr>
        <td>学号</td>
        <td th:text="${student1.stuNo}"></td>
    </tr><br/>
    <tr>
        <td>姓名</td>
        <td th:text="${student1.stuName}"></td>
    </tr><br/>
    <tr>
        <td>性别</td>
        <td th:text="${student1.stuSex}"></td>
    </tr><br/><br/>

    03. List<br/>
    <div th:each="student:${studentsList}">
        <p th:text="${student.stuName}"></p>
    </div><br/>

    04. Map<br/>
    <div th:text="${studentsMap.get('student1').stuName}"></div><br/>
    <div th:text="${studentsMap.student2.stuName}"></div><br/>

    05. 遍历Map<br/>
    <div th:each="item:${studentsMap}">
        <p th:text="${item.key}"></p>
        <p th:text="${item.value.stuName}"></p>
    </div><br/>

    06. 级联对象<br/>
    <div th:text="${stuClass.students[0].stuName}"></div><br/>

    07. 选择对象<br/>
    <div th:object="${student1}">
        姓名：<span th:text="*{stuName}"></span><br/>
        性别：<span th:text="*{stuSex}"></span>
    </div><br/>

    08. 消息表达<br/>
    <span th:text="#{stuNameFromProperties}"></span><br/>
    <span th:text="#{stuSexFromProperties}"></span>
</body>
</html>